package com.useeinfo.oa.modules.logger.entity;

import com.useeinfo.framework.extend.entity.SuperClassEntity;
import com.useeinfo.oa.modules.logger.enums.LogTypeEnum;

import javax.persistence.*;

/**
 * 设备类型日志表
 */
@Entity
@Table(name = "log_facility_cat")
public class FacilityCatLog extends SuperClassEntity<FacilityCatLog> {
    /**
     * 设备类型id
     */
    private Long facilityCatId;
    /**
     * 内容
     */
    private String content;
    /**
     * 操作人
     */
    private String userName;
    /**
     * 操作人ID
     */
    private Long userId;
    /**
     * 操作人ip
     */
    private String userIp;
    /**
     * 操作类型
     */
    @Enumerated(value = EnumType.STRING)
    @Column(name = "log_type")
    private LogTypeEnum logTypeEnum;

    public Long getFacilityCatId() {
        return facilityCatId;
    }

    public void setFacilityCatId(Long facilityCatId) {
        this.facilityCatId = facilityCatId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getUserIp() {
        return userIp;
    }

    public void setUserIp(String userIp) {
        this.userIp = userIp;
    }

    public LogTypeEnum getLogTypeEnum() {
        return logTypeEnum;
    }

    public void setLogTypeEnum(LogTypeEnum logTypeEnum) {
        this.logTypeEnum = logTypeEnum;
    }
}
